﻿
<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title></title>
</head>
<body>
    <script>
        var arr = [`rad`, `green`, `blue`, `skyblue`];
        //forEach 遍历数组
        arr.forEach(function (item, index, array) {
            console.log(item, index, array);
        });
    </script>
</body>
</html>